package web.gkw.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Component;

import web.gkw.dao.UserInfoDAO;
import web.gkw.model.User;
import web.gkw.model.UserInfo;
import web.gkw.service.UserInfoService;

@Component("userInfoSercice")
public class UserInfoServiceInfo implements UserInfoService {

	@Resource
	private UserInfoDAO userInfoDAO;
	
	@Override
	public boolean addUserInfo(User user, UserInfo userInfo) {
		// TODO Auto-generated method stub
		userInfo.setId(user.getId());
		return userInfoDAO.addUserInfo(userInfo);
	}

}
